package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.CategoryBrandDto;
import com.atguigu.spzx.model.entity.product.Brand;
import com.atguigu.spzx.model.entity.product.CateBrand;
import com.atguigu.spzx.model.entity.product.CategoryBrand;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author syh
 * @create 2023-08-22 17:06
 */
@Mapper
public interface CategoryBrandMapper {
    List<CategoryBrand> selectPage(CategoryBrandDto categoryBrandDto);

    void deleteById(Long id);

    void save(CateBrand cateBrand);

    void updateById(CateBrand cateBrand);

    List<Brand> findBrandByCategoryId(Long categoryId);
}
